/**
 * 
 */
package TestPat;

import static org.junit.Assert.*;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

/**
 * @author Valter
 *
 */
public class TestTestPat {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}

	/**
	 * Test method for {@link TestPat.TestPat#main(java.lang.String[])}.
	 */
	@Test
	public void test1() {
		TestPat myt = new TestPat();
		assertEquals(-1,myt.pat("abc".toCharArray(),"abcd".toCharArray()));
	}

	/**
	 * Test method for {@link TestPat.TestPat#main(java.lang.String[])}.
	 */
	@Test
	public void test2() {
		TestPat myt = new TestPat();
		assertEquals(-1,myt.pat("eeeeeeeeee".toCharArray(),"e".toCharArray()));		
	}
	
	/**
	 * Test method for {@link TestPat.TestPat#main(java.lang.String[])}.
	 */
	@Test
	public void test3() {
		TestPat myt = new TestPat();
		assertEquals(-1,myt.pat("".toCharArray(),"e".toCharArray()));		
	}

}
